<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/jquery-ui.min.js"></script>
<script src="/wondershare/js/public_ws.js"></script>
<link href="/wondershare/styles/jquery-ui.css" rel="stylesheet" type="text/css"/>
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<title>导出评论Excel管理</title>
<script> 
 $(document).ready(function() 
 {
		$("#start_date").datepicker(  
	   {  
		 dateFormat:'yy-mm-dd',  // 设置日期格式  
	   }); 
	   $("#end_date").datepicker(  
	   {  
		 dateFormat:'yy-mm-dd',  // 设置日期格式  
	   }); 
 });
function check_submit()
{
    var falge = false;
  var i_stime=Date.parse($("#start_date").val().replace("-", "/"));
  var e_stime=Date.parse($("#end_date").val().replace("-", "/"));
  if($('#start_date').val().replace(/(^\s*)|(\s*$)/g, "")== "")
  {
      alert('选择开始时间！');
	  $('#start_date').focus();
      return false;
  }
  if($('#end_date').val().replace(/(^\s*)|(\s*$)/g, "")== "")
  {
      alert('选择结束时间！');
	  $('#end_date').focus();
      return false;
  }
  if(CheckDate($('#start_date').val()))
  {
     alert('您输入的开始日期格式不正确！');
	  $('#start_date').focus();
      return false;
  }
  if(CheckDate($('#end_date').val()))
  {
     alert('您输入的结束日期格式不正确！');
	  $('#end_date').focus();
      return false;
  }
  if(i_stime>e_stime)
  {
	    alert("开始时间不能大于结束时间！")
		$('#start_date').focus();
		return false;
  }

   if($('#file_name').val().replace(/(^\s*)|(\s*$)/g, "")=="")
  {
      alert('导出文件名不能为空！');
      $("#file_name").focus();
      return false;
  }
  
  var Ary = $("#file_name").val().split('.');
  var  filetype = Ary[Ary.length-1];
  if (filetype != 'xls') 
  {
     alert ('导出文件名的格式必须为xls！');
     return false;
  }
  return true;
}
</script>
</head>
<body>
<h1>
<span class="action-span1">
<a href="http://cms.wondershare.com.br.wx/wondershare/faq_comment.php?action=index&web_type=<{$web_type}>">评论管理</a> >> 导出评论成xls
</span> 
&nbsp;
<div style="clear:both"></div>
</h1>
<div id="tabbody-div"  style=" width:1100px;">
      <form  name="theForm" method="post" action="/wondershare/faq_comment.php?action=export&web_type=<{$web_type}>" onsubmit="return check_submit();">
	   <table align="center" width="90%" id="general-table">
          <tbody>
		   <tr> <td class="label">开始时间:</td><td>
		   <input type="text" size="30" style="float:left;color:;"  name="start_date" id="start_date" value="" > 
		  </td> </tr>
		  <tr> <td class="label">结束时间:</td><td>
		   <input type="text" size="30" style="float:left;color:;"  name="end_date" id="end_date" value=""> 
		  </td> </tr>
		   <tr>
		  <td class="label">
		   导出文件名:
		  </td>
		  <td><input type="text" size="60" style="float:left;color:;" value="" name="file_name" id="file_name"><span style="color:#FF0000">格式必须为xls</span></td>
		  </tr>
		  </tbody></table>
        <div  style="margin-left:380px; margin-top:20px;">

          <input type="submit"   class="button" value=" 导出  " name="sub_from" style="cursor:pointer;">
		  
          <input type="reset" class="button" value=" 重置 ">
        </div>
      </form>
    </div>
</body>
</html>